home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 March / PCWorld_2008-03_cd.bin / v cisle / mediacoder / MediaCoder-0.6.1.4045.exe / htdocs / wmcfg / wmcodecs.xsl < prev   
Extensible Markup Language  |  2007-05-14  |  3KB  |  94 lines

  1. <?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
  2.     <!ENTITY nbsp   " ">
  3.     <!ENTITY copy   "©">
  4.     <!ENTITY reg    "®">
  5.     <!ENTITY trade  "™">
  6.     <!ENTITY mdash  "—">
  7.     <!ENTITY ldquo  "“">
  8.     <!ENTITY rdquo  "”"> 
  9.     <!ENTITY pound  "£">
  10.     <!ENTITY yen    "¥">
  11.     <!ENTITY euro   "€">
  12. ]>
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  14. <xsl:output method="xml" encoding="utf-8" doctype-public="-//MOZILLA//DTD XUL V1.0//EN"/>
  15. <xsl:template match="/MediaCoderPrefs">
  16.  
  17. <!--?xml-stylesheet href="chrome://global/skin/" type="text/css"?-->
  18.  
  19. <window id="prefs_tree"
  20.         xmlns:html="http://www.w3.org/1999/xhtml"
  21.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  22.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  23.         flex="1"
  24.         >
  25. <tree rows="6" flex="1" onselect="onTreeSelected(this)">
  26.   <treecols>
  27.       <treecol id="param" label="Parameter" primary="true" flex="5"/>
  28.       <treecol id="type" label="Type" flex="1"/>
  29.       <treecol id="value" label="Value" flex="5"/>
  30.   </treecols>
  31.  
  32.   <treechildren>
  33.     <xsl:for-each select="node">
  34.       <treeitem container="true">
  35.       <xsl:if test="last()=1">
  36.       <xsl:attribute name="open">true</xsl:attribute>
  37.       </xsl:if>
  38.       <xsl:attribute name="uri"><xsl:value-of select="@key"/></xsl:attribute>
  39.       <treerow>
  40.         <treecell>
  41.           <xsl:attribute name="label"><xsl:value-of select="@text"/></xsl:attribute>
  42.         </treecell>
  43.       </treerow>
  44.       <treechildren>
  45.         <xsl:for-each select="node">
  46.           <treeitem container="true">
  47.           <xsl:if test="last()=1">
  48.           <xsl:attribute name="open">true</xsl:attribute>
  49.           </xsl:if>
  50.           <xsl:attribute name="uri"><xsl:value-of select="@key"/></xsl:attribute>
  51.           <treerow>
  52.             <treecell>
  53.               <xsl:attribute name="label"><xsl:value-of select="@text"/></xsl:attribute>
  54.             </treecell>
  55.           </treerow>
  56.           <treechildren>
  57.             <xsl:for-each select="node">
  58.               <treeitem>
  59.               <xsl:attribute name="uri"><xsl:value-of select="@key"/></xsl:attribute>
  60.               <treerow>
  61.                 <treecell>
  62.                   <xsl:attribute name="label"><xsl:value-of select="@text"/></xsl:attribute>
  63.                 </treecell>
  64.                 <treecell>
  65.                   <xsl:attribute name="label">
  66.                     <xsl:choose>
  67.                     <xsl:when test="@type='bool'">Boolean</xsl:when>
  68.                     <xsl:when test="@type='int'">Integer</xsl:when>
  69.                     <xsl:when test="@type='float'">Float</xsl:when>
  70.                     <xsl:when test="@type='enum'">Enum</xsl:when>
  71.                     <xsl:when test="@type='string'">String</xsl:when>
  72.                     <xsl:when test="@type='file'">File Path</xsl:when>
  73.                     <xsl:when test="@type='dir'">Dir Path</xsl:when>
  74.                     <xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
  75.                     </xsl:choose>
  76.                   </xsl:attribute>
  77.                 </treecell>
  78.                 <treecell>
  79.                   <xsl:attribute name="label"><xsl:value-of select="value"/></xsl:attribute>
  80.                 </treecell>
  81.               </treerow>
  82.               </treeitem>
  83.              </xsl:for-each>
  84.           </treechildren>
  85.           </treeitem>
  86.          </xsl:for-each>
  87.       </treechildren>
  88.       </treeitem>
  89.     </xsl:for-each>
  90.   </treechildren>
  91. </tree>
  92. </window>
  93. </xsl:template>
  94. </xsl:stylesheet>